﻿using LitJson;

namespace TableCore.Plugin
{
    public class JsonDataFormatter : IGenFormatter
    {
        public IExportData ExportData(GTFile.Content content, string data, string cellName, string comment)
        {
            return null;
        }

        public JsonData Format(GTFile.Content content, string input, string cellName, string comment)
        {
            return JsonMapper.ToObject(input);// JsonConvert.DeserializeObject<JToken>(data);
        }

        public bool IsValid(string data)
        {
            return true;
        }
    }
}
